package com.qf.im.base;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum Codes {
    SUCC(200, "成功"),
    FAIL(500, "失败"),
    AUTH_ERROR(501, "账号密码错误"),
    VAILTE_ERROR(502, "参数校验失败"),
    USER_EXISTS(503, "账号已存在"),
    EMAIL_EXISTS(504, "邮箱已存在"),
    NO_LOGIN(505, "未登录"),
    USER_NOT_FOUND(506, "用户未找到"),
    NOT_ADD_SELF(507, "不能添加自己为好友"),
    NOT_REP(508, "请勿重复发送好友申请");

    /**
     * 响应码
     */
    private Integer code;
    /**
     * 响应消息
     */
    private String msg;

}



